$(function () {
    let hrefArr = window.location.href.split('/');
    let name = hrefArr[hrefArr.length-1];
    $(".menu a[href='"+name+"']").addClass('active');
})